//Fillvector.cpp
//Copy an entire fle into a vector of string

//include required header
#include <string>
#include <iostream>
#include <fstream>
#include <vector>

using namespace std;

int main(int argc, char const *argv[])
{
	vector<string> v;
	ifstream in ("Fillvector.cpp");
	string line;
	while(getline(in,line)) //get line from stream into string.
		v.push_back(line); //Add the line to the end.

	//Add line numbers
	for(int i = 0; i < v.size(); i++)
		cout << i << ": " << v[i] << endl;
	return 0;
}///:~